package com.montran.sort;

import java.util.Comparator;

public enum NewsComparator implements Comparator<News> {

	LINK_SORT() {
		public int compare(News o1, News o2) {
			return o1.getLink().compareTo(o1.getLink());
		}
	},
	TITLE_SORT() {
		public int compare(News o1, News o2) {
			return o1.getTitle().compareTo(o2.getTitle());
		}
	},
	DATE_SORT() {
		public int compare(News o1, News o2) {
			return o1.getPublishingDate().compareTo(o2.getPublishingDate());
		}
	};


}
